package org.lt.resume.controller.user;

import org.lt.resume.service.userserviceInterface.UserServiceInterface;

import com.opensymphony.xwork2.ActionSupport;

public class DeleteUserController extends ActionSupport  {

	/** **/
	private static final long serialVersionUID = 7611130313948491168L;

	private UserServiceInterface userservice;

	private String username;

	private String message = "该用户信息已被删除";

	public UserServiceInterface getUserservice() {
		return userservice;
	}

	public void setUserservice(UserServiceInterface userservice) {
		this.userservice = userservice;
	}

	@Override
	public String execute() throws Exception {
		
		userservice.deleteUser(username);
//		return SUCCESS;
		return null;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
